# coding=utf-8
from django.db import models

# Create your models here.
TYPE_CHOICES = (('E', 'Enterprise'), ('G', 'Government'), ('U', 'University'),)

class Cooperation(models.Model):
    cooperation_name_en = models.CharField(verbose_name='Name', max_length=127)
    cooperation_name_zh = models.CharField(verbose_name='名称', max_length=127)
    cooperation_type = models.CharField(verbose_name='Type', choices=TYPE_CHOICES, max_length=1)
    cooperation_homepage = models.URLField(verbose_name='Homepage', blank=True, max_length=255)

    def __unicode__(self):
        return self.cooperation_name_zh

    class Meta:
        ordering = ['cooperation_name_en']
